<?php
/*
 * @Author: zhx zhx.0830@qq.com
 * @Date: 2023-08-28 09:21:31
 * @LastEditors: zhx zhx.0830@qq.com
 * @LastEditTime: 2023-09-06 17:24:33
 * @FilePath: \cn-saas-new\app\Models\admin\Application.php
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

namespace App\Models\admin;

use DateTimeInterface;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Application extends Model
{
    use HasFactory;
    use SoftDeletes;

    protected $table = 'admin_application';

    public $fillable = ['logo', 'number', 'name', 'module', 'remark', 'install_category', 'status', 'service_address', 'home_address'];

    /**
     * 为 array / JSON 序列化准备日期格式
     */
    protected function serializeDate(DateTimeInterface $date): string
    {
        return $date->format('Y-m-d H:i:s');
    }
}
